package com.study.crud.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.study.crud.mapper.JobMapper;
import com.study.crud.model.job.Job;
import com.study.crud.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class JobServiceImpl extends ServiceImpl<JobMapper, Job> implements JobService {

    @Autowired
    private JobMapper jobMapper;

    @Override
    public Integer findEidByJid(Integer jid) {
        return jobMapper.findEidByJid(jid);
    }

    @Override
    public void removeByEid(Integer eid) {
        jobMapper.removeByEid(eid);
    }
}
